package xyz.yolin.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.yolin.utils.Entity;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Survey extends Entity {

	public static final String state_create="创建";
	public static final String state_exec="进行中";
	public static final String state_over="结束";

	private Integer id;
	private String title;
	private String remark;
	private Integer bounds;
	private Date starttime;
	private Date endtime;
	private Integer rules;
	private String password;
	private String url;
	private String state;
	private String logo;
	private String bgimg;
	private Integer anon;
	private Integer creator;
	private Date createtime;


	private Admin admin;

	private List<Question> questions;

}